home *** CD-ROM | disk | FTP | other *** search
- Path: wabbit.cc.uow.edu.au!not-for-mail
- From: am@wraith.cc.uow.edu.au (Abimanju Manoharan)
- Newsgroups: comp.lang.c
- Subject: [Q]How can I read ints and floats by using fgets() ?
- Date: 24 Jan 1996 22:58:15 +1100
- Organization: University of Wollongong, NSW, Australia.
- Message-ID: <4e56sn$p6n@wraith.cc.uow.edu.au>
- NNTP-Posting-Host: wraith.cs.uow.edu.au
- X-Newsreader: NN version 6.5.0 #5
-
- Hi everybody,
- I have a small problem in my c program. I want to read a file for exe.
- the file (file size is not constant):
-
- 4 11
- 2.5 4 13 3.7
- 5 4 2.1
- 2.4
-
- I have to read each line by using fgets(). then I have to convert this
- string. There are float values and int values are mixed.
- Du you any idea? or du you have another way to read this?
-
- Could you kindly send a e-mail to me.
-
- thanks
- A.Mano
-
- am@cs.uow.edu.au
-
-
-